package ru.pb.global.data.model;

public class ItemInfo
{
	private final int _itemId;
	private final int _itemType;
	private int _count;
	private int _loc;
	private final int _loc_slot;
	private int _lifeTime;
	private int _flags;

	public ItemInfo(int itemId, int itemType, int count, int loc, int loc_slot, int lifeTime, int flags)
	{
		_itemId = itemId;
		_itemType = itemType;
		_count = count;
		_loc = loc;
		_loc_slot = loc_slot;
		_lifeTime = lifeTime;
		_flags = flags;
	}

	public ItemInfo(int itemId, int itemType, int slot)
	{
		this(itemId, itemType, 1, 2, slot, 0, 0);
	}

	public void setEquippedLocation(int loc)
	{
		_loc = loc;
	}

	public int getEquippedLocation()
	{
		return _loc;
	}

	public int getEquippedSlot()
	{
		return _loc_slot;
	}

	public int getItemId()
	{
		return _itemId;
	}

	public int getItemType()
	{
		return _itemType;
	}

	public int getCount()
	{
		return _count;
	}

	public void setCount(int count)
	{
		_count = count;
	}

	public int getLifeTime()
	{
		return _lifeTime;
	}

	public void setLifeTime(int time)
	{
		_lifeTime = time;
	}

	public int getFlags()
	{
		return _flags;
	}

	public void setFlags(int flags)
	{
		_flags = flags;
	}
}